<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>
<%
String UserID="";

if(request.getParameter("UserID")!=null){
	UserID=request.getParameter("UserID");
}


String sql="update dbo.Users set IsValid=1 where UserID="+UserID;
	DataBase db2 = new DataBase();
	db2.executeUpdate(sql);
	db2.closeStmt();
	db2.closeConn();
response.sendRedirect("user_reset_success.jsp?UserID="+UserID);
%>